<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<h3><b>提示信息</b></h3>
<div class="tr5"><br>可以查看和管理用户自定义积分</div>
<!--
EOT;
if (!$action){print <<<EOT
-->
<form action="$basename&" method="post">
<input type="hidden" name="action" value="edit">
<h2><b>自定义积分管理</b></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td>用户名</td>
<td class="tr3"><input class="input" type="text" name="username"></td></tr>
</table>
<br><center><input type="submit" class="btn" value='提 交'></center></form>
$pages
<h2><b>自定义积分管理</b></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac s3">
<td>ID</td>
<td>用户名</td>
<td>自定义积分名称</td>
<td>自定义积分值</td>
<td class="tal">编辑</td>
</tr>
<!--
EOT;
$id=($page-1)*$db_perpage;
foreach($creditdb as $key => $value){
if($value[username] && $value[name]){
$id++;
print <<<EOT
-->
<tr class="tr3 tac">
<td>$id</td>
<td>$value[username]</td>
<td>$value[name]</td>
<td>$value[value]</td>
<td><a class="fourm-two" title="编辑" href="$basename&action=edit&uid=$value[uid]"><span class="edit"></span></a></td>
</tr>
<!--
EOT;
}}print <<<EOT
-->
</table><br/>
$pages
<!--
EOT;
}elseif($action=='edit'){print <<<EOT
-->
<form action="$basename&" method="post">
<input type="hidden" name="action" value="edit">
<input type="hidden" name="step" value="2">
<input type="hidden" name="uid" value="$rt[uid]">
<h2><b>自定义积分管理</b></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td width="20%">用户名</td>
<td>$rt[username]</td></tr>
<!--
EOT;
foreach($_CREDITDB as $key => $value){print <<<EOT
-->
<tr class="tr3"><td>$value[0]</td>
<td><input class="input" type="text" name="creditdb[$key]" value="{$u_credit[$key]}"></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table>

<br><center><input class="btn" type="submit" value='提 交'></center></form><br/>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->